import { PropsWithChildren } from 'react'
import Taro, { useLaunch } from '@tarojs/taro'
import './app.scss'

function App({ children }: PropsWithChildren<any>) {
    useLaunch(() => {
        Taro.setStorageSync('cur-tab', 'pages/home/index')
    })

    // children 是将要会渲染的页面
    return children
}

export default App
